var t = getApp();

Page({
    data: {},
    onLoad: function(t) {
        this.setData({
            id: t.id
        });
    },
    onReady: function() {},
    onShow: function() {
        this.getdata();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        var n = t.getNetAddresss("plugin.energy-cabin.frontend.user-terminal.card-detail"), a = this;
        t._getNetWork({
            url: n,
            data: {
                card_type: a.data.id
            },
            success: function(t) {
                var n = t.data;
                1 == n.result && (console.log(n), a.setData({
                    datas: n.data
                }));
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});